package Judgment_composition;
import java.util.Scanner;

public class circular extends graphics {
    public static void main(String[] args) {
        System.out.print("请输入三角形的三边：");
        Scanner sc = new Scanner(System.in);
        double side1 = sc.nextDouble();
        double side2 = sc.nextDouble();
        double side3 = sc.nextDouble();
        circular circulation = new circular();
        double circumference =circulation.popular_circumference(side1,side2,side3);
        if(circumference == 0){
            System.out.println("长为"+side1+","+side2+","+side3+
                    "的三条边不可以构成三角形，因为三角形的任意两边之和必须大于第三边");
        }
        else{
            System.out.println("长为"+side1+","+side2+","+side3+
                    "的三条边可以构成三角形，三角形的周长为"+circumference);
        }


    }
}
